package com.xxxx.service;

import com.xxxx.dao.DepartmentMapper;
import com.xxxx.model.Department;

import java.util.List;

public class DepartmentMapperImp implements DepartmentService{
   private DepartmentMapper departmentMapper;

    public void setDepartmentMapper(DepartmentMapper departmentMapper) {
        this.departmentMapper = departmentMapper;
    }

    public int addpart(Department department) {
        return departmentMapper.addpart(department);
    }

    public int deletepart(int partid) {
        return departmentMapper.deletepart(partid);
    }
    public List<Department> queryAllpart() {
        return departmentMapper.queryAllpart();
    }
}
